package com.ating.demo.Mapper;

import com.ating.demo.Entity.Department;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentMapper {

    List<Department> selectAll(Department department);

    Department selectById(Integer id);

    void insert(Department department);

    void updateById(Department department);

    @Delete("delete from department where id = #{id}")
    void moveById(Integer id);
}
